package com.vcs.frm.dao.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.vcs.frm.domain.State;

public class StateRowMapper implements RowMapper<State>{

	@Override
	public State mapRow(ResultSet rs, int rowNum) throws SQLException {
		State state = new State();
		state.setStateId(rs.getInt("STATE_ID"));
		state.setStateName(rs.getString("STATE_NAME"));
		return state;
	}
	

}
